from django.contrib import admin

from .models import StudentInfo, CourseItem


class StudentInfoAdmin(admin.ModelAdmin):
    list_display = ["id", "qq", "vx", "dify_user_id", "student_id", "message"]
    exclude = ("student_password",)


class CourseItemAdmin(admin.ModelAdmin):
    list_display = [
        "id",
        "student",
        "course_id",
        "name",
        "order",
        "credit",
        "property",
        "category",
        "exam_type",
        "teacher",
        "method",
        "select_status",
        "course_time",
        "location",
    ]

    
admin.site.register(StudentInfo, StudentInfoAdmin)
admin.site.register(CourseItem, CourseItemAdmin)
